<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        .test1{
            width: 500px;
            height: 500px;
            border: black 1px solid;
            display: flex;
        }
        .test2 div{
            width: 100px;
            height: 100px;
           border-right: 1px red solid;
            border-bottom: 1px red solid;

        }
        .test2{
            flex: 2;
            display: flex;
            flex-wrap:wrap;
            align-content: flex-start;
            text-align: center;
            justify-content: space-between;
        }
        .test3{
            flex: 1;
        }


    </style>
</head>
<body>
<div class="test1">
    <div class="test3">1111</div>
    <div class="test2">
    <div></div>
    <div></div>
    <div></div>
    <div></div>
    <div></div>
    <div></div>
    <div></div>
    <div></div>
    <div></div>
    <div></div>
    <div></div>
    </div>
</div>
</body>
</html>